import logging
import pytest

from utils.send_request_utils import get_jdbc_conn
from config.config import sqls

@pytest.fixture(scope="session", autouse=True)
def destory_data():
    logging.info("初始化会话级别夹具函数")
    yield
    conn = get_jdbc_conn()
    cursor = conn.cursor()

    for sql in sqls:
        cursor.execute(sql)

    cursor.close()
    conn.close()

    logging.info("销毁会话级别夹具函数")




